package com.study.common

import android.content.Context
import android.widget.Toast
import androidx.annotation.AnyThread
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch

object ToastUtil {
    @AnyThread
    fun showToast(context: Context, content: String?) {
        CoroutineScope(Dispatchers.Main).launch {
            Toast.makeText(context, content, Toast.LENGTH_SHORT).show()
        }
    }
}
